package intelligentcity.conf;

public class Conf {

    // Gui:
    public final static int timing = 100;

    // Road:
    public final static int distanceBeetweenStreets = 40;

    // Street:
    public final static int defaultStreetImportance = 1;

    // Car:
    public final static int carStopTime = 10;
    public final static int distanceBetweenCars = 3 * carStopTime / 2;
    public final static int carStopTimeWhileStreetSelecting = 30;
    public final static int carStopTimeBetweenColourOfLightChecking = 300;
    public final static int maxNumberOfPointOfTurnsAtIntersection = 1;

    public final static int safeDistance = 30;
    public final static int whileTime = 100;

    // Traffic:
    public final static int timeBetweenNewCarCreating = 400;

    // TrafficDrawer:
    public final static double diameterOfEllipseCar = 10;

    // CityDrawer:
    public final static boolean toDrawIntersectionRectangle = true;
    public final static boolean toDrawStartPoints = true;
    public final static boolean toDrawLights = true;

    // Diary:
    public final static int timeOfWritingOnOnePage = 10000;
    public final static int maxNumberOfPages = 5;

    // CityBuilder:
    public final static int distanceBetweenCityEndPointsAndStartPoints = 10;
    public final static int MAIN = 2;

    // Loggers:
    public final static boolean diaryLogger = true;

    // TimeCounter
    public static final int stopTime = 5000;

    public static final void stop(int numberOfMiliseconds) {
        try {
            Thread.sleep(numberOfMiliseconds);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

}
